/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model.purchasing;

import java.util.HashMap;
import java.util.Map;
import javax.sql.DataSource;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.object.StoredProcedure;

/**
 *
 * @author Lalugina
 */
public class SPManageOrder extends StoredProcedure {
    private static final String SP_MANAGE_ORDER = "manage_order";

    public SPManageOrder(DataSource ds) {
        super(ds, SP_MANAGE_ORDER);
    }

    public SPManageOrder(JdbcTemplate jdbcTemplate, String name) {
        super(jdbcTemplate, name);
    }
    
    public void executeParamValue(int paramValue) {
        Map inParams = new HashMap();
        inParams.put("p_entry_id", paramValue);
        execute(inParams);
    }
}
